<template>
  <!-- 点餐-蚂蚁上树-商店详情 -->
  <div class="shop-details">
    <van-button type="primary" text="显示遮罩层" @click="show = true" />
    <van-overlay :show="show" @click="show = false">
      <div class="wrapper">
        <div class="block">
          <div class="title">便民商店</div>
          <div class="tag">
            <van-tag round color="#262626" text-color="white" size="large">优惠信息</van-tag>
          </div>
          <span class="shop-detail-span">满30减5，满60减8（APP专享）</span>
          <div class="tag">
            <van-tag round color="#262626" text-color="white" size="large">商家公告</van-tag>
          </div>
          <span  class="shop-detail-span">实惠</span>
        </div>
      </div>
    </van-overlay>
  </div>
</template>

<script>
import { Overlay, Button, Tag } from "vant";
export default {
  name: "ShopDetails",
  components: {
    [Overlay.name]: Overlay,
    [Button.name]: Button,
    [Tag.name]: Tag,
  },
  data() {
    return {
      show: false,
    };
  },
};
</script>

<style lang="less" scoped>
.shop-details {
  color: white;
  .wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .block {
    width: 100%;
    height: 100%;
  }
  .title {
    height: 100px;
    font-size: 22px;
    text-align: center;
    line-height: 100px;
  }
  .tag{
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .shop-detail-span{
    margin-left: 28px;
  }
}
</style>